import Vue from 'vue'
import Router from 'vue-router'
import Library from "@/containers/Library"
import Find from "@/containers/Find"
import Mine from "@/containers/Mine"
import Center from '@/containers/Center'
import LocalMusic from '@/containers/Mine/SubPage/LocalMusic'
import MineCollect from '@/containers/Mine/SubPage/MineCollect'
import MineHistory from '@/containers/Mine/SubPage/MineHistory'
import Login from '@/containers/login'
Vue.use(Router)

export default new Router({
  linkActiveClass: "active",
  routes: [
    {
      path: '/',
      redirect: '/library'
    },
    {
      path: "/library",
      name: 'Library',
      component: Library
    },
    {
      path: "/login",
      name: 'Login',
      component: Login
    },
    {
      path: "/find",
      name: 'Find',
      component: Find
    },
    {
      path: "/mine",
      name: 'Mine',
      component: Mine
    },
    {
      path: "/center",
      name: 'Center',
      component: Center
    },
    {
      path:'/localmusic',
      name:'LocalMusic',
      component:LocalMusic
    },
    {
      path:'/minecollect',
      name:'MineCollect',
      component:MineCollect
    },
    {
      path:'/minehistory',
      name:'MineHistory',
      component:MineHistory
    }
  ]
})
